@use '@dms/themes/src/mixins/mixins' as *;
@use '@dms/themes/src/mixins/utils' as *;

@include b(layout) {
  width: 100vw;
  height: 100vh;
  position: relative;

  /* area selector */
  @include e(area) {
    position: absolute;
    top: 0;
    left: 20px;
    color: #fff;
    z-index: 20;
  }
  @include e(area-label) {
    font-size: 14px;
    margin-right: 6px;
  }

  /* banner start */
  @include e(banner) {
    position: relative;
    padding: 0 20px;
    width: 100%;
    height: 206px;
    background: linear-gradient(89.82deg, #3b81f2 0.15%, #33bffd 99.83%);
    @include utils-clearfix();
  }

  @include e(banner-bg) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 26px);
    background: url('')
      no-repeat right bottom;
    background-size: 139px 147px;
    pointer-events: none;
  }

  @include e(banner-content) {
    position: relative;
    z-index: 10;
    margin-top: 15px;
    color: $white-color;
    font-weight: 400;
  }

  @include e(banner-title) {
    font-size: 20px;
    height: 32px;
    line-height: 32px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  @include e(banner-user) {
    margin-top: 8px;
    font-size: 14px;
    display: inline-block;
    text {
      display: inline-block;
      max-width: 280px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      vertical-align: middle;
    }
    u-icon {
      vertical-align: middle;
    }
    .u-icon {
      margin-left: 24px;
      font-size: 12px;
    }
  }

  /* banner end */

  @include e(main-body) {
    position: relative;
    height: calc(100% - 206px + 26px);
    margin-top: -26px;
    background-color: $u-main-color;
    border-radius: 26px 26px 0 0;
    padding-top: 26px;
    padding-bottom: $gov-layout-footer-height + 10px;
  }
  @include e(main) {
    height: 100%;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    .#{$namespace + $common-separator + 'plate'} {
      margin-bottom: 20px;
    }
  }
  @include e(scroll-view) {
    height: 100%;
  }

  @include e(footer) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
  }
}
